package com.lagou.edu.service;

import com.lagou.edu.service.impl.ResumeFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(name = "lagou-service-resume", fallback = ResumeFallback.class, path = "/resume")
//@RequestMapping("resume") 当定义fallback的时候,这个属性不能贴在方法头上面
public interface ResumeServiceFeignClient {

    @GetMapping("/openstate/{userId}")
    public Integer findDefaultResumeState(@PathVariable("userId") Long userId);

}
